<?php
class Application_Model_Result
{
    protected $_name;
    protected $_round;
    protected $_rank;
    protected $_win;
    protected $_draw;
    protected $_lose;
    protected $_sos;
    protected $_sdo;
    protected $_sao;
    protected $_vd;
    protected $_vf;
    protected $_va;
    /**
     * @return the $_rank
     */
    public function getRank ()
    {
        return $this->_rank;
    }
    /**
     * @return the $_draw
     */
    public function getDraw ()
    {
        return $this->_draw;
    }
    /**
     * @return the $_lose
     */
    public function getLose ()
    {
        return $this->_lose;
    }
    /**
     * @return the $_sos
     */
    public function getSos ()
    {
        return $this->_sos;
    }
    /**
     * @return the $_sdo
     */
    public function getSdo ()
    {
        return $this->_sdo;
    }
    /**
     * @return the $_sao
     */
    public function getSao ()
    {
        return $this->_sao;
    }
    /**
     * @return the $_vd
     */
    public function getVd ()
    {
        return $this->_vd;
    }
    /**
     * @return the $_vf
     */
    public function getVf ()
    {
        return $this->_vf;
    }
    /**
     * @return the $_va
     */
    public function getVa ()
    {
        return $this->_va;
    }
    /**
     * @param field_type $_rank
     */
    public function setRank ($_rank)
    {
        $this->_rank = $_rank;
        return $this;
    }
    /**
     * @param field_type $_draw
     */
    public function setDraw ($_draw)
    {
        $this->_draw = $_draw;
        return $this;
    }
    /**
     * @param field_type $_lose
     */
    public function setLose ($_lose)
    {
        $this->_lose = $_lose;
        return $this;
    }
    /**
     * @param field_type $_sos
     */
    public function setSos ($_sos)
    {
        $this->_sos = $_sos;
        return $this;
    }
    /**
     * @param field_type $_sdo
     */
    public function setSdo ($_sdo)
    {
        $this->_sdo = $_sdo;
        return $this;
    }
    /**
     * @param field_type $_sao
     */
    public function setSao ($_sao)
    {
        $this->_sao = $_sao;
        return $this;
    }
    /**
     * @param field_type $_vd
     */
    public function setVd ($_vd)
    {
        $this->_vd = $_vd;
        return $this;
    }
    /**
     * @param field_type $_vf
     */
    public function setVf ($_vf)
    {
        $this->_vf = $_vf;
        return $this;
    }
    /**
     * @param field_type $_va
     */
    public function setVa ($_va)
    {
        $this->_va = $_va;
        return $this;
    }
    /**
     * @return the $_win
     */
    public function getWin ()
    {
        return $this->_win;
    }
    /**
     * @param field_type $_win
     */
    public function setWin ($_win)
    {
        $this->_win = $_win;
        return $this;
    }
    public function __construct (array $options = null)
    {
        if (is_array($options)) {
            $this->setOptions($options);
        }
    }
    public function __set ($name, $value)
    {
        $method = 'set' . $name;
        if (('mapper' == $name) || ! method_exists($this, $method)) {
            throw new Exception('Invalid guestbook property');
        }
        $this->$method($value);
    }
    public function __get ($name)
    {
        $method = 'get' . $name;
        if (('mapper' == $name) || ! method_exists($this, $method)) {
            throw new Exception('Invalid guestbook property');
        }
        return $this->$method();
    }
    public function setOptions (array $options)
    {
        $methods = get_class_methods($this);
        foreach ($options as $key => $value) {
            $method = 'set' . ucfirst($key);
            if (in_array($method, $methods)) {
                $this->$method($value);
            }
        }
        return $this;
    }
    public function setName ($name)
    {
        $this->_name = $name;
        return $this;
    }
    public function getName ()
    {
        return $this->_name;
    }
    public function getRound ()
    {
        return $this->_round;
    }
    public function setRound ($_round)
    {
        $this->_round = $_round;
        return $this;
    }
}

